//2.1 - Integer Wrapping - Dirk Henkemans and Mark Lee - //Prima Publishing #include using namespace std; //displays an example of integer wrapping int main() { unsigned int unInt = 4294967295; signed short aShort = 32767; cout << "Unsigned int's value is: " << unInt << endl; cout << "Short's value is: " << aShort << endl; unInt = unInt + 1; aShort = aShort + 1; cout << endl << "Unsigned int's new value is: " << unInt << endl; cout << "Short's new value is: " << aShort << endl; return 0; }